import {baseEffects, baseReducers, baseState} from "../../../models/baseModel";
import * as request from "../../../services/CommonHttpService";
import AppService from "../../../common/AppService";
import moment from "moment";
export default {
  namespace: 'service',

  state: {
    ...baseState,
    CPU:[],
  },

  reducers: {
    ...baseReducers
  },

  effects: {

    ...baseEffects,
    * CPU({payload}, {call,put}) {
      const {value, success, baseUrl, errorMsg, notice, server} = payload;
      let CPU = yield call(request.commonGet, '/manage/cpu/', {},{}, AppService.dataUrl);
      success(CPU);
    },
  }

}
